<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11-表单控制</title>
</head>
<body>
    <div id="app">

        <textarea v-model="message" name="text" id="text" cols="30" rows="10"></textarea>

        <div style="white-space: pre-line;">
            {{ message }}
        </div>

        <input type="checkbox" v-model="bool">
        <div>{{bool}}</div>

    </div>
    <script src="https://unpkg.com/vue@next"></script>
    <script>

        var app = Vue.createApp({
            data() {
                return {
                    message: "",
                    bool:false
                }
            }
        }).mount("#app")

    </script>
</body>
</html>